//
//  ShowModelViewController.m
//  navigation
//
//  Created by Bc_Ltf on 15/1/29.
//  Copyright (c) 2015年 Bc_Ltf. All rights reserved.
//

#import "ShowModelViewController.h"

@interface ShowModelViewController ()

@end

@implementation ShowModelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)showModel:(id)sender {
    // 获取storyboard 对象
    UIStoryboard *mainStoryBoard=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
    // 利用storyBoard ID 创建uiviewcontroller 对象
    UIViewController* model=[mainStoryBoard instantiateViewControllerWithIdentifier:@"ModelViewController"];
    
    // 过度动画
    model.modalTransitionStyle=UIModalTransitionStylePartialCurl;
    [self presentViewController:model animated:YES completion:^{
        NSLog(@"打开模态，就这么简单");
    }];
}
@end
